@media screen and (min-width: 1280px){
  .container{
    width: 1280px;
  }
}
// 初始样式
body{
  background-color: #f5f5f5;
}
.container{
  background-color: #fff;
}
//header
header{
  padding-left: 0 !important;
  
  .logo{
    background-color: #7B90D6;
    margin: 0;
    padding: 0;
    a{
      display: block;
      span{
        display: block;
        height: 50px;
        font-size: 18px;
        line-height: 50px;
        text-align: center;
        color: #fff;
      }
    }
  }
  nav{
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    a{
      display: block !important;
      padding-left: 30px;
      height: 50px;
      color: #666;
      font-size: 16px;
      line-height: 50px !important;
      &:hover{
        text-decoration: none;
        color: #333;
      }
      &::before{
        margin-right: 5px;
        vertical-align: middle;
      }
    }
  }
}

main{
  .news{
    border-bottom: 1px solid #ccc;
    li{
      float: left;
      height: 128px;
      padding-right: 10px;
      margin-bottom: 10px;
      width: 25%;
      &:nth-child(1){
        width: 50%;
        height: 266px;
        p{
          padding: 0 10px;
          font-size: 20px;
          line-height: 41px;
        }
      }
      a{
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        img{
          display: block;
          width: 100%;
          height: 100%;
        }
        p{
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 41px;
          padding: 0 10px;
          background-color: rgba(0, 0, 0, 0.7);
          color: #fff;
          font-size: 12px;
          line-height: 16px;
          padding: 5px 10px 0;
          margin: 0;
        }
      }
    }
  }
  .publish{
    .publish-box{
      padding: 10px 0;
      border-bottom: 1px solid #ccc;
      img{
        padding-top: 10px;
      }
    }
  }
}

.banner{
  display: block;
  width: 100%;
  margin-bottom: 20px;
}
.hot{
  display: block;
  border: 1px solid #ccc;
  padding: 0 20px 20px;
  &:hover{
    text-decoration: none;
  }
  button{
    border-radius: 0;
    margin-bottom: 10px;
  }
  p{font-size: 12px;}
}

// 媒体查询，进行响应式效果
@media screen and (min-width: 768px){
  header{
    .logo{
      img{
        margin: 0 auto;
      }
    }
  }
}
@media screen and (max-width:991px){
  header{
    nav{
      a{
        float: left;
        width: 20%;
      }
    }
  }
}
// 超小屏幕
@media screen and (max-width:767px){
  header{
    nav{
      a{
        font-size: 14px;
      }
    }
  }
  main{
    .news{
      li{
        width: 50%;
        &:nth-child(1){
          width: 100%;
        }
      }
    }
    .publish{
      .publish-box{
        h3{
          font-size: 16px;
        }
      }
    }
  }
}